package net.lzzy;

public class TestGenericStack {
    public static void main(String[] args) {
        GenericStack<String> stack1 = new GenericStack<>();
        stack1.push("London");
        stack1.push("Paris");
        stack1.push("Berlin");
        System.out.println(stack1.toString());
        GenericStack<Integer> stack2 = new GenericStack<>();
        stack2.push(1);
        stack2.push(2);
        stack2.push(3);
        System.out.println(stack2.toString());

        GenericStack<Double> stack3 = new GenericStack<>();
        stack3.push(3.22);
        stack3.push(5.3);
        stack3.push(5.00);
        System.out.println(stack3.toString());

        GenericStack<Boolean> stack4 = new GenericStack<>();
        stack4.push(true);
        stack4.push(false);
        System.out.println(stack4.toString());

    }
}
